import javafx.scene.control.Skin;
import java.util.Scanner;

public class Test {
    public static int Max(int x,int y) {
        return x>y?x:y;
    }
    public static double Max(double x,double y,double z) {
        return (x>y?x:y)>z?(x>y?x:y):z;
    }
    public static void main(String[] args) {
        int ret1 = Max(3,2);
        double ret2 = Max(3.1,3.2,3.4);
        System.out.println(ret1);
        System.out.println(ret2);
    }
    public static int sum(int x,int y) {
        return x+y;
    }
    public static double sum(double x,double y, double z) {
        return x+y+z;
    }
    public static void main14(String[] args) {
        int ret1=sum(3,4);
        double ret2 = sum(3.1,3.2,3.3);
        System.out.println(ret1);
        System.out.println(ret2);
    }
    public static void main13(String[] args) {
        int a = 1;
        int b = 1;
        int c = 0;
        for (int i = 2; i < 7; i++) {
            c = a+b;
            a = b;
            b = c;
        }
        System.out.println(c);
    }
    public static int max3(int x,int y,int z) {
        return max2(x,y)>z?max2(x,y):z;
    }
    public static int max2(int x,int y) {
        return x>y?x:y;
    }
    public static void main12(String[] args) {
       int ret1 = max2(3,4);
       int ret2 = max3(4,5,6);
        System.out.println(ret1);
        System.out.println(ret2);
    }
    public static void main11(String[] args) {
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j+"*"+i+"="+j*i+" ");
            }
            System.out.println();
        }
    }
    public static void main10(String[] args) {
        String key = "123abc";
        Scanner sc = new Scanner(System.in);
        int count = 3;
        while(true) {
            String ma =sc.nextLine();
            if(ma.equals(key)) {
                System.out.println("成功");
                break;
            } else {
                count--;
                if (count==0) {
                    System.out.println("你的机会已用完");
                    break;
                }
                System.out.println("你还有"+count+"次机会");
            }

        }
    }
    public static void main9(String[] args) {
        int num = 123;
        while(num>0) {
            System.out.println(num%10);
            num = num/10;
        }
    }
    public static double fenShu(int n) {
        return 1/n;
    }
    public static void main8(String[] args) {
        double sum = 0;
        int flag = -1;
        for (int i = 1; i <= 100 ; i++) {
            flag = - flag;
            double ret = fenShu(i);
            sum += (ret*flag);
        }
        System.out.println(sum);
    }
    public static void main67(String[] args) {
        int num  = 7;
        int flag = 1;
        for (int i = 2; i <7 ; i++) {
            if (7%i==0) {
                flag = 0;
            }
        }
        if (flag==1) {
            System.out.println("这是一个素数");
        } else {
            System.out.println("这不是一个素数");
        }
    }
    public static void main6(String[] args) {
        int count =0;
        for (int i = 1000; i <=2000 ; i++) {
            if (((i%100!=0) && (i%4==0)) ||  (i%400==0)) {
                System.out.print(i+" ");
                count++;
                if (count%20 == 0) {
                    System.out.println();
                }
            }

        }
    }
    public static void main5(String[] args) {
        int count = 1;
        for (int i = 10; i <= 100; i++) {
            if (i/10%10 == 9 && i<99) {
                count++;
            }
            if (i%10 == 9) {
                count++;
            }
        }
        System.out.println(count);
    }
    public static void main4(String[] args) {
        int flag = 1;
        int count = 0;
        for (int i = 2; i <= 100; i++) {
            flag = 1;

            for (int j = 2; j < i; j++) {

                if (i%j == 0) {
                    flag = -1;
                    continue;
                }
            }
            if (count%10==0) {
                System.out.println();
            }
            if (flag == 1) {
                count++;
                System.out.print(i+" ");
            }
        }
    }
    public static void main3(String[] args) {
        System.out.println("Hello World");
        double x = 2.0;
        int y = 4;
        x /=++y;
        System.out.println(x);
        int a = 1;
        short b =2 ;
        long c =3;
        float d = 4;



    }
    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Data data = new Data(x, y);
            System.out.println(data.getX() + data.getY());
        }
    }
}

class Data {

    private int x;
    private int y;

    public Data(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

}
//class Dog {
//    public String name = "小米";
//    public int age = 3;
//    public String hobby = "睡觉";
//    public Dog() {
//        System.out.println("这是一个无参的构造方法");
//    }
//    public Dog(String name,int age,String hobby) {
//        System.out.println(this.name+"今年"+this.age+"岁,爱好是"+this.hobby);
//    }
//}
//public class Test {
//    public static void main(String[] args) {
//        Dog dog1 = new Dog();
//        Dog dog2 = new Dog("赛虎",3,"跑步");
//    }
//}
//
//class Snake {
//    public boolean name;
//    public int age;
//    public void show() {
//        System.out.println(name+" "+age);
//    }
//}
//

//
//    public String name;
//    public int age;